import _http from '@/utils/http'

export default {
    userSearch(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/manager/search',
            apiName: '用户列表查询',
        }, params, loading, headers)
    },
    userStateChange(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/manager/stateChange',
            apiName: '修改用户状态',
        }, params, loading, headers)
    },
    userDelete(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/manager/delete',
            apiName: '删除用户',
        }, params, loading, headers)
    },
    userAdd(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/manager/add',
            apiName: '新增用户',
        }, params, loading, headers)
    },
    confirmPassword(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/confirmPassword',
            apiName: '登陆后确认密码-公司用户',
        }, params, loading, headers)
    },
    roleRoles(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/role/roles',
            apiName: '下拉列表获取所有角色',
        }, params, loading, headers)
    },
    userModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/manager/modify',
            apiName: '修改用户',
        }, params, loading, headers)
    },
}
